package com.oceansoft.core.rcgz.service.impl;

import com.hui.platform.system.exception.HuiException;
import com.oceansoft.core.rcgz.dao.IRcgzDao;
import com.oceansoft.core.rcgz.domain.Dailywork;
import com.oceansoft.core.rcgz.service.IRcgzService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by OS on 2017/12/1.
 */
@Service
public class RcgzServiceImpl implements IRcgzService {
    @Resource
    private IRcgzDao rcgzDao;

    @Override
    public Dailywork dailyWorkContent(String policeNum, String workdate) throws HuiException {
        return rcgzDao.dailyWorkContent(policeNum,workdate);
    }

    @Override
    public void addWorkContent(Dailywork dailywork) {
        rcgzDao.addWorkContent(dailywork);
    }

    @Override
    public void editWokrConent(Dailywork dailywork) {
        rcgzDao.editWorkContent(dailywork);
    }
}
